package ae.pcfc.cldos.online.common.clddb.domain.manager.provider;

import ae.pcfc.cldos.online.common.clddb.dao.ApplicationAttachmentDAO;
import ae.pcfc.cldos.online.common.clddb.domain.ApplicationAttachment;
import ae.pcfc.cldos.online.common.clddb.domain.manager.ApplicationAttachmentDOM;
import ae.pcfc.cldos.online.common.dao.GenericDAO;

/**
 * 
 * @author arosa
 *
 */
public class ApplicationAttachmentDOMImpl extends GenericDAO implements ApplicationAttachmentDOM{
	
	private ApplicationAttachmentDAO applicationAttachmentDAO;
	
	public void setApplicationAttachmentDAO(
			ApplicationAttachmentDAO applicationAttachmentDAO) {
		this.applicationAttachmentDAO = applicationAttachmentDAO;
	}
	
	public void add(ApplicationAttachment applicationAttachment){
		applicationAttachmentDAO.add(applicationAttachment);
	}

	public ApplicationAttachment findById(Long id) {
		return applicationAttachmentDAO.findById(id);
	}
	
	public ApplicationAttachment findByOnlineId(Long onlineId){
		return applicationAttachmentDAO.findByOnlineId(onlineId);
	}
}
